import javax.swing.ImageIcon;
import javax.swing.JLabel;


public class Objet_tmp { 


	public JLabel visuel_objet_drag_and_drop;

	public ImageIcon image;
	int type;
	
	public Objet_tmp (int otype){
		type=otype;
		visuel_objet_drag_and_drop = new JLabel();
		switch(type)
		{
		case 1:
			image =new ImageIcon("images/maison.png");	
		break;
		case 2:
			image =new ImageIcon("images/bucheron.png");	
		break;
        default:
        	image =new ImageIcon("images/maison.png");
        break;
		}
		visuel_objet_drag_and_drop.setIcon(image);
	}
	public JLabel get_visuel(){
		return visuel_objet_drag_and_drop;
	}
	
	

}